<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <!--:属性名=变量  让元素的属性和变量进行绑定-->
    <input type="text" :value="info">
    <input type="text" v-bind:value="info">
    <a :href="url">超链接</a>
    <img :src="imageName" alt="" style="width: 200px">
    <p></p>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

<script>
    new Vue({
        el: "div",
        data: {
            info: "属性绑定",
            url: "http://www.taobao.com",
            imageName:"c.jpg"
        }
    })
</script>
</body>
</html>